#include <stdio.h>

int main(int argc, char const *argv[])
{
	char str[] = "Hello XueMingQiang";
	//%s,从首元素开始打印,直到结束符位置.
	//%s,操作的是指针所指向的内容.
	printf("str ==%s\n", str);
	//2.str是首元素地址,如果想打印str本身的值,%p,%x,%d,%o
	printf("str == %p\n", str);
	int i = 0;
	while(str[i] != '\0'){
		printf("%c", str[i]);
		i++;
	}
	printf("\n");

	return 0;
}